/*
 * @Author: FMC
 * @Date: 2024-06-22 22:12:35
 * @LastEditors: FMC
 * @LastEditTime: 2024-07-11 00:42:06
 * @FilePath: \three-run-game\vite.config.js
 * @Description: 
 */
import { defineConfig } from 'vite'
import glsl from "vite-plugin-glsl";
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  base: '/three.js-demo/three-run-game/', // 新增这一行
  publicDir: "./public/",
  build:
  {
      outDir: './dist',
      emptyOutDir: true,
      sourcemap: true
  },
  plugins: [react(), glsl()],
})
